﻿function configurarDataTable(idgrid) {

    $('#'+idgrid).dataTable({
        "bPaginate": true,
        "bLengthChange": false,
        "bFilter": true,
        "bSort": true,
        "bInfo": true,
        "bAutoWidth": false,
        "bWidth": 200,
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "oLanguage":
                {
                    "sProcessing": "",
                    "sLengthMenu": "Mostrar _MENU_ registos",
                    "sZeroRecords": "",
                    "sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registos",
                    "sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
                    "sInfoFiltered": "(filtrado de _MAX_ registos no total)",
                    "sInfoPostFix": "",
                    "sSearch": "Procurar:",
                    "sUrl": "",
                    "oPaginate": {
                        "sFirst": "Primeiro",
                        "sPrevious": "<b> < </b>",
                        "sNext": "<b>></b>",
                        "sLast": "Último"
                    }

                }
    });
}